﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business.vo;
using Business.dao;

namespace Business.bo
{
    public class ImageLinkBo : BaseBo
    {

        public ImageLink GetById(Int32 id)
        {
            ImageLinkDao imageLinkDao = new ImageLinkDao();

            ImageLink imageLink = imageLinkDao.GetById(id);

            return imageLink;
        }

        public IList<ImageLink> GetAll()
        {
            ImageLinkDao imageLinkDao = new ImageLinkDao();

            IList<ImageLink> imageLinks = imageLinkDao.GetAll();

            return imageLinks;
        }

        public IList<ImageLink> GetAllNames()
        {
            ImageLinkDao imageLinkDao = new ImageLinkDao();

            IList<ImageLink> imageLinks = imageLinkDao.GetAllNames();

            return imageLinks;
        }

        public void Save(ImageLink imageLink)
        {
            ImageLinkDao imageLinkDao = new ImageLinkDao();
            imageLinkDao.Save(imageLink);
        }

        public void Delete(Int32 id)
        {
            ImageLinkDao imageLinkDao = new ImageLinkDao();
            imageLinkDao.Delete(id);
        }

      
    }
}
